home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / Linked List Template Classes / Linked Lists Ä.sit / Linked Lists ƒ / source code / SimpleWindowClass.h < prev    next >
C/C++ Source or Header  |  1995-03-03  |  529b  |  20 lines

  1. class    SimpleWindowClass {
  2.     WindowPtr    theWindow;
  3.     void        DrawWindowNumber();
  4.     Str255        sWindowNumber;
  5.     Str255        sThisWindow;
  6.     short        numWidth, titleWidth;
  7.     short        fontHeight;
  8. public:
  9.     void    CreateWindow(short windowNumber, short resID);
  10.     ~SimpleWindowClass();
  11.     
  12.     void    UpdateWindow();
  13.     void    ActivateWindow(Boolean activate);
  14.     void    Drag(Point where);
  15.     void    Hide() { HideWindow(theWindow); }
  16.     
  17.     Boolean    operator == (SimpleWindowClass right) { return *this==right; }
  18.     Boolean operator == (WindowPtr right) { return theWindow==right; }
  19. };
  20.